<template>
  <div>
      <div class="top">
          <a href="#" @click="goback"></a>
          <p>设置蚂蚁积分</p>
      </div>
      <div class="content">
         <p @click="change('大众会员')">大众会员</p>
         <p @click="change('黄金会员')">黄金会员</p>
         <p @click="change('铂金会员')">铂金会员</p>
         <p @click="change('钻石会员')">钻石会员</p>
      </div>
      <div class="space">
          
      </div>
  </div>
</template>

<script>
export default {
    data(){
        return{
            points:null,
        }
    },
    methods:{
        goback(){
            this.$router.go("-1")
        },
        change(vip){
            if(vip){
                this.global.vip = vip
                this.$toast.success("更改成功");
                this.$router.go("-1")
            }else{
                this.$toast.fail("失败")
            }
        }
    }
    
}
</script>

<style lang="less" scoped>
.space{
    height: 510px;
    background-color: #f6f6f6;
}
.top{
    background-color: #ff8f87;
    display: flex;
    align-items: center;
    height: 40px;
    a{
        width: 20px;
        height: 20px;
        background: url("../../assets/img/left.png")no-repeat;
        background-size: 100%;
    }
    p{
        margin: 0;
        margin-left: 33%;
        color: #fff;
    }
}
.content{
   display: flex;
   flex-wrap: wrap;
   p{
       width: 100%;
       font-size: 15px;
       margin: 0;
       margin: 10px 10px;
       font-weight: 600;
   }
}
</style>